package com.huawei.appgallery.wishwall.ui.activity;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.foundation.service.common.protocol.request.AppListFragmentRequest;
import com.huawei.appgallery.foundation.ui.framework.uikit.ContractFragment;
import com.huawei.appgallery.wishbase.ui.activity.WishBaseActivity;
import com.huawei.appgallery.wishwall.ui.fragment.protocol.WishWallDetailFragmentProtocol;
import com.huawei.appgallery.wishwall.ui.fragment.protocol.WishWallDetailFragmentProtocol.Request;
import com.huawei.hmf.annotation.ActivityDefine;
import o.cjk;
import o.cjm;
import o.cjo;
import o.ddq.c;
import o.ddq.d;
import o.ddq.f;
import o.ddz;
import o.fiv;
import o.FragmentTransaction;

@ActivityDefine(alias = "wishwall.detail.activity", protocol = WishWallDetailActivityProtocol.class)
public class WishWallDetailActivity extends WishBaseActivity {
    private fiv ͺ = fiv.ॱ(this);
    private String ॱˊ;

    public void onCreate(@Nullable Bundle bundle) {
        super.onCreate(bundle);
        setContentView(c.ˋ);
        WishWallDetailActivityProtocol wishWallDetailActivityProtocol = (WishWallDetailActivityProtocol) this.ͺ.ॱ();
        if (!(wishWallDetailActivityProtocol == null || wishWallDetailActivityProtocol.ˎ() == null)) {
            this.ॱˊ = wishWallDetailActivityProtocol.ˎ().ॱ();
        }
        ॱ(getResources().getString(f.ˑ), d.ˌ);
        ᐝ();
    }

    private void ᐝ() {
        cjo wishWallDetailFragmentProtocol = new WishWallDetailFragmentProtocol();
        AppListFragmentRequest request = new Request();
        request.ˋॱ(this.ॱˊ);
        wishWallDetailFragmentProtocol.ˏ(request);
        Fragment fragment = (ContractFragment) cjk.ˎ().ˊ(new cjm("wish.wall.detail.fragment", wishWallDetailFragmentProtocol));
        FragmentTransaction ˊ = ˏॱ().ˊ();
        ˊ.ˏ(d.ॱͺ, fragment);
        ˊ.ˋ();
    }

    public void finish() {
        ddz.ˏ().ॱ();
        super.finish();
    }
}
